package com.aspose.cells;

class zboy extends zbpb {
   private int f;

   public zboy(int var1, boolean var2) {
      super(64, b(var1), c(var1), var2);
      this.f = var1;
   }

   public zboy(int var1, int var2, boolean var3) {
      super(var1, b(var2), c(var2), var3);
      this.f = var2;
   }

   private static boolean b(int var0) {
      switch(var0) {
      case 364:
      case 366:
         return true;
      default:
         return false;
      }
   }

   private static boolean c(int var0) {
      return false;
   }

   public zagu a() {
      switch(this.f) {
      case 12:
      case 45:
      case 366:
         if (this.b > 1) {
            return new zyy(zbmo.c(this.a, 0, this.b));
         }

         return zza.a;
      case 193:
      case 195:
      case 364:
         if (this.b > 0) {
            return new zyy(zbmo.d(this.a, 0, this.b));
         }

         return zza.a;
      case 227:
         return this.f();
      case 269:
         if (this.b > 0) {
            return new zyy(zbmo.f(this.a, 0, this.b));
         }

         return zze.a;
      case 318:
         return new zyy(zbmo.e(this.a, 0, this.b));
      case 322:
         return zbmo.h(this.a, 0, this.b);
      case 323:
         return zbmo.g(this.a, 0, this.b);
      default:
         return null;
      }
   }

   private zagu f() {
      if (this.b > 0) {
         com.aspose.cells.b.a.za.a((double[])this.a, 0, this.b);
         if (this.b % 2 == 0) {
            int var1 = this.b / 2;
            return new zyy((this.a[var1 - 1] + this.a[var1]) / 2.0D);
         } else {
            return new zyy(this.a[this.b / 2]);
         }
      } else {
         return zze.a;
      }
   }
}
